﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="ContractSrhForm.aspx.cs" Inherits="App_Input_ContractSrhForm" Title="合同登记"%>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="PanelNavigate" runat="server" />

    <div>
        <cc1:ComValidator ID="ComValidator1" runat="server" CheckItems-Capacity="4" ForeColor="Red">
            <cc1:CheckLongAttribute Code="E0317" ControlToValidator="saleProcId">
                <cc1:ComAbsParamsAttribute Parameter="销售流程号" />
            </cc1:CheckLongAttribute>
            <cc1:CheckLongAttribute Code="E0317" ControlToValidator="contractId">
                <cc1:ComAbsParamsAttribute Parameter="合同编号" />
            </cc1:CheckLongAttribute>
        </cc1:ComValidator>
        <table width="80%">
            <tr>
                <td style="height: 167px">
                    <table class="table_border_line">
                        <tr>
                      
                            <th align="left" colspan="6" style="text-align: left;">
                            <script language="javascript">
                                        (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>
                            </th>
                        </tr>
                    </table>
                    <table class="table_border_line" style="background:ffffff">
                        
                        <tr>
                            <td style="width: 5%"></td>
                            <td class="list_data_bg_left" style="white-space: nowrap">销售编号</td>
                            <td align="left">
                               <asp:TextBox ID="saleProcId" runat="server" MaxLength="8"></asp:TextBox>
                            </td>
                            <td align="left"></td>
                            <td align="left"></td>
                            <td align="right"></td>
                        </tr>
                        <tr>
                            <td style="width: 50px; height: 26px;">&nbsp;</td>
                            <td style="width: 120px; white-space: nowrap; height: 26px;" class="list_data_bg_left">
                                员工编号</td>
                            <td align="left" style="height: 26px">
                                <asp:TextBox ID="employeeName" runat="server" MaxLength="4"></asp:TextBox>
                            </td>
                            <td align="left" style="height: 26px"></td>
                            <td align="left" style="height: 26px"></td>
                            <td align="right" style="height: 26px">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 50px">&nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" class="list_data_bg_left">客户姓名</td>
                            <td align="left">
                                <asp:TextBox ID="relationName" runat="server" MaxLength="20"></asp:TextBox>
                            </td>
                            <td align="left"></td>
                            <td align="left"></td>
                            <td align="right">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 50px">&nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" class="list_data_bg_left"">入住人姓名</td>
                            <td align="left">
                                        <asp:TextBox ID="nameC" runat="server" MaxLength="20"></asp:TextBox>
                            </td>
                            <td align="left"></td>
                            <td align="left"></td>
                            <td align="right">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width: 50px">&nbsp;</td>
                            <td style="width: 120px; white-space: nowrap" class="list_data_bg_left">合同编号</td>
                            <td align="left">
                                <asp:TextBox ID="contractId" runat="server" MaxLength="4" ></asp:TextBox>
                            </td>
                            <td align="left"></td>
                            <td align="left"></td>
                            <td align="right">&nbsp;</td>
                        </tr>
                        
                    </table>
                </td>
                <td style="height: 167px">&nbsp;</td>
            </tr>
            <tr>
                <td align="center" valign="bottom" style=" height:35px">&nbsp; &nbsp;
                    <asp:Button  ID="search" text="检 索"    CssClass="button1" style="width: 90px" runat="server" OnClick="search_Click"  />
                 </td>
           
           
            </tr>
        </table>
   
        <table id="resultTable" runat="server" width="80%">
       
            <tr>
                <th align="left"   style="text-align: left;">
                     <script language="javascript">
                                        (new TitleBar('SearchBar1', '检索结果')).showBar();
                            </script>
                     </th>
            </tr>
 
            <tr>
                <td style="width: 100%">
               
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"   OnRowEditing="GridView1_OnRowEditing" CssClass="GridView_table" Width="100%" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"  >
                        <Columns>
                            <asp:BoundField DataField="saleProcId" HeaderText="销售编号">
                                <ItemStyle CssClass="GridView_item_center" Width="10%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EmployeeName" HeaderText="员工姓名">
                                <ItemStyle CssClass="GridView_item_center" Width="15%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField DataField="relationName" HeaderText="客户姓名">
                                <ItemStyle CssClass="GridView_item_center" Width="15%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField DataField="nameC" HeaderText="入住人姓名 ">
                                <ItemStyle CssClass="GridView_item_center" Width="15%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MemberNo" HeaderText="会员编号">
                                <ItemStyle CssClass="GridView_item_center" Width="15%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            
                            <asp:TemplateField ConvertEmptyStringToNull="False" HeaderText="合同编号">
                                <ItemStyle CssClass="GridView_item_center" Width="10%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                                <ItemTemplate>
                                <%# string.Format("{0:0000}", ((ContractSrhBean)Container.DataItem).ContractId) %>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:BoundField DataField="SignDate" HeaderText="签订日期" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <ItemStyle CssClass="GridView_item_center" Width="15%" />
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:CommandField ButtonType="Image" EditImageUrl="~/images/edit.jpg" EditText="详细"
                                HeaderText="详细" ShowEditButton="True">
                                <HeaderStyle CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" Width="5%" />
                            </asp:CommandField>
                        </Columns>
                        <PagerStyle HorizontalAlign="Right" VerticalAlign="Middle" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    
    </div>
    
    
</asp:Content>
